#!/bin/bash
#===============================================================================
#
#          FILE:  bootc.sh
# 
#         USAGE:  ./bootc.sh 
# 
#   DESCRIPTION:  Reboot the whole cluster (Bad, but sure that everything's the same)
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR:  Basile Clout (BC), basile.clout@unb.ca
#       COMPANY:  Faculty of Computer Science at University of New Brunswick
#       VERSION:  1.0
#       CREATED:  01/25/08 22:04:57 AST
#      REVISION:  ---
#===============================================================================

#Close mpi and vlan4.py
mpdallexit
mpdallcleanup
su  basil -c mpdallexit;
su  basil -c mpdcleanup;
vlan4.py -d &> /dev/null

/home/basil/scripts/send_command "reboot"

